package com.codingapi.mybatisdemo1.controller;

import com.codingapi.mybatisdemo1.entity.Test;
import com.codingapi.mybatisdemo1.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @描述: alf
 * @创建人: ljf
 * @创建时间: 2018-04-09 11:46
 */
@Controller
public class TestController {
   @Autowired
    private TestService testService;
   @RequestMapping("/save")
   @ResponseBody
   public int test(){

     // testService.save("a",1);
       return testService.save("a",1);
   }

}
